package com.hanhai.zrb.api.biz.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.hanhai.zrb.model.intention.Intention;
import com.hanhai.zrb.model.intention.dto.IntentionDto;

public interface IntentionService {
	
	public PageInfo findIntentions(IntentionDto intentionDto,int pageNum,int pageSize);
	public PageInfo findFundList(IntentionDto intentionDto,int pageNum,int pageSize);
	
	
	public Intention getIntention(Long id) ;
	public Intention getDetails(Long id);
	public Intention selectByIdAndUserId(Long id,Long userId);
		
	public boolean updateIntention(Intention intention);
	
	public boolean saveIntention(Intention intention);
	
	public List<Intention> findListDtailesBymaxId(Long userId, Long maxId, Integer limit);
	
	public List<Intention> selectByUserId(Long userId);
	
	public List<Intention> getIntentionList(List<Long> ids);
	
	public boolean batchUpdateIntention(List<Intention> intentions);
	
	public boolean multiDelete(List<Long> ids);
	
	public Map<Long,Intention> getIntentionMap(List<Long> ids);
	
	public List<Intention> selectByUserIdAndType(@Param("userId") Long userId,@Param("type") Integer type);
	
	public int countAllUserIntention(Long uid);
}
